package com.rftennis.web.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.rftennis.dto.JSONResponce;

import com.rftennis.dto.QueryResult;
import com.rftennis.entity.CustomerAddressEntity;
import com.rftennis.entity.OrderEntity;
import com.rftennis.service.CustomerAddressService;
import com.rftennis.service.OrderService;
import com.rftennis.vo.OrderVo;

@Controller
public class AddressController {
	@Autowired
	CustomerAddressService service;
	
	@GetMapping("/Address/selectAll.do")
	public @ResponseBody JSONResponce selectOrder(String customerId) throws Exception{
		CustomerAddressEntity e=service.CustomerAddress(customerId);
		return JSONResponce.ok(e);
	}
	
}
